﻿<%@ Page Title="生产企业接收配送企业订单未响应" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="MessageListForType11.aspx.cs" Inherits="HZ.Supervise.Web.Message.MessageListForType11" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    var urlid = window.location.search.substring(1).split("=")[1]; //urlid为1是为打分页面为2是已打分页面
    $(document).ready(function() {
        if (urlid == "1") {
            $("#tabnav ul li:eq(0)").attr("class", "active");
            $("#tabnav ul li:eq(1)").removeAttr("class", "active");
        }
        else if (urlid == "0") {
            $("#tabnav ul li:eq(0)").removeAttr("class", "active");
            $("#tabnav ul li:eq(1)").attr("class", "active");
        }
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div id="tabnav">
        <ul>
            <li><a href="MessageListForType11.aspx?Is_Read=1">已查看的消息</a></li>
            <li class="active"><a href="MessageListForType11.aspx?Is_Read=0">未查看的消息</a></li>
        </ul>       
</div>
    <div id="tabcontent">
        <table class="querylist">
                  <tr>
                      <th>
                          消息名称：
                      </th>
                      <td>
                         <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                      </td>
                       <th>
                          消息创建时间：
                      </th>
                      <td>
                          <asp:TextBox ID="txtCreatTime" onFocus="WdatePicker

({dateFmt:'yyyy-MM-dd '})" runat="server"></asp:TextBox>                         
                      </td>
                       
                      <td>
                          <asp:Button ID="Button1" CssClass="btn" runat="server" Text="查询" 
                              onclick="btnQuery_Click" />
                      </td>
                  </tr>
              </table>
    </div>
    <asp:GridView runat="server" ID="gvwMessageList" CssClass="mainlist"  AutoGenerateColumns="False"
        EmptyDataText="暂无消息！" OnRowCommand="gvwMessageList_RowCommand" 
       
        DataKeyNames="MessageDetailId" Width="100%">
        <Columns>
             
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="TypeName" HeaderText="消息名称" />
              <asp:TemplateField HeaderText="触发条件">
                <ItemTemplate>
                    <%#Eval("SqlDescription") %>
                </ItemTemplate>
            </asp:TemplateField>               
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:d}" />
                   
            <asp:BoundField DataField="num" HeaderText="违规企业数量" />           
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>   
                    <asp:LinkButton ID="lbnDetail" runat="server" CommandName="DirectByDetail"    CommandArgument='<%# Eval("MessageDetailId")%>' >查看详细</asp:LinkButton>                     
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
             onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
       <%-- <asp:Button ID="btnDelte" CssClass="btn"
            OnClientClick="if(getcheckcount('请至少选择一个要删除的预警')){ return confirm('确定要删除所选的预警吗？');} return false;" 
            runat="server" Text="删除" onclick="btnDelte_Click" />--%>
    </div>
</asp:Content>
